Conversation
CalculatorWhat We're Looking For
You need to answer the comprehension questions when you submit your project. You and I can get in touch to figure that out together. Great job with the calculator, it functions very well. More than okay :) You have a bug in your code about checking for valid operation. I'll be adding a comment on that :) It seems that the choice for float or integer doesn't change the functionality of the calculator very much! You ended up extending the Nicely done overall |
|
|
||
| until operations.include?(user_operation) | ||
| print "Please enter valid operation, remember-this calculator is only okay: " | ||
| user_operator = gets.chomp.downcase |
There was a problem hiding this comment.
You probably want to assign this value to the variable user_operation instead of user_operator. If you put in an erroneous operation and get into this until loop, you end up never being able to escape, hehehe
Calculator
Congratulations! You're submitting your assignment.
Comprehension Questions